/*
visqrt
Copyright (C) 2010  Bhupendra Aole

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
*/
/*
 * File: Ray3.java
 * Author: Bhupendra Aole
 * Date: Aug 21, 2010: 
 * 
 * Revisions:
 * ----------
 */

package aole.math;

public class Ray3 {
	public Vec3 orig;
	public Vec3 dir;

	public Ray3() {
		orig = new Vec3();
		dir = new Vec3();
	}

	public void makeDir (float tx, float ty, float tz) {
		dir.set(tx, ty, tz);
		dir.subtract(orig);
		dir.normalize();
	}
}
